package com.btex.app.entity;

import java.util.List;

/**
 * @author zy zhangyi <zhangyi, 1104745049@QQ.com
 * @version v1.0
 * @project study1
 * @Description
 * @encoding UTF-8
 * @date 2018/10/19
 * @time 下午7:43
 * @修改记录 <pre>
 * 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 * </pre>
 */

public class MyFuturesInfo {

    /**
     * code : 1
     * data : {"user_id":"100038","maker_feilv":"0.00000000","taker_feilv":"0.00100000","status":"1","add_time":1539858669,"balances":[{"coin":"BTC","balance":"579.97774787"},{"coin":"ETH","balance":"0.00000000"},{"coin":"BCH","balance":"0.00000000"},{"coin":"ETC","balance":"0.00000000"},{"coin":"LTC","balance":"0.00000000"},{"coin":"USD","balance":"0.00000000"}],"margins":[{"contract_id":"3","anchor":"BCH","margin":"0.00000000"},{"contract_id":"2","anchor":"ETH","margin":"0.00000000"},{"contract_id":"1","anchor":"BTC","margin":"0.00246459"}]}
     * info :
     */

    private int code;
    private DataBean data;
    private String info;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public static class DataBean {
        /**
         * user_id : 100038
         * maker_feilv : 0.00000000
         * taker_feilv : 0.00100000
         * status : 1
         * add_time : 1539858669
         * balances : [{"coin":"BTC","balance":"579.97774787"},{"coin":"ETH","balance":"0.00000000"},{"coin":"BCH","balance":"0.00000000"},{"coin":"ETC","balance":"0.00000000"},{"coin":"LTC","balance":"0.00000000"},{"coin":"USD","balance":"0.00000000"}]
         * margins : [{"contract_id":"3","anchor":"BCH","margin":"0.00000000"},{"contract_id":"2","anchor":"ETH","margin":"0.00000000"},{"contract_id":"1","anchor":"BTC","margin":"0.00246459"}]
         */

        private String user_id;
        private String maker_feilv;
        private String taker_feilv;
        private String status;
        private String add_time;
        private List<BalancesBean> balances;
        private List<MarginsBean> margins;

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getMaker_feilv() {
            return maker_feilv;
        }

        public void setMaker_feilv(String maker_feilv) {
            this.maker_feilv = maker_feilv;
        }

        public String getTaker_feilv() {
            return taker_feilv;
        }

        public void setTaker_feilv(String taker_feilv) {
            this.taker_feilv = taker_feilv;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getAdd_time() {
            return add_time;
        }

        public void setAdd_time(String add_time) {
            this.add_time = add_time;
        }

        public List<BalancesBean> getBalances() {
            return balances;
        }

        public void setBalances(List<BalancesBean> balances) {
            this.balances = balances;
        }

        public List<MarginsBean> getMargins() {
            return margins;
        }

        public void setMargins(List<MarginsBean> margins) {
            this.margins = margins;
        }

        public static class BalancesBean {
            /**
             * coin : BTC
             * balance : 579.97774787
             */

            private String coin;
            private String balance;

            public String getCoin() {
                return coin;
            }

            public void setCoin(String coin) {
                this.coin = coin;
            }

            public String getBalance() {
                return balance;
            }

            public void setBalance(String balance) {
                this.balance = balance;
            }
        }

        public static class MarginsBean {
            /**
             * contract_id : 3
             * anchor : BCH
             * margin : 0.00000000
             */

            private String contract_id;
            private String anchor;
            private String margin;

            public String getContract_id() {
                return contract_id;
            }

            public void setContract_id(String contract_id) {
                this.contract_id = contract_id;
            }

            public String getAnchor() {
                return anchor;
            }

            public void setAnchor(String anchor) {
                this.anchor = anchor;
            }

            public String getMargin() {
                return margin;
            }

            public void setMargin(String margin) {
                this.margin = margin;
            }
        }
    }
}
